package com.udima.reglocation;

import android.os.Bundle;

import android.app.Activity;
import android.content.Intent;
import android.view.Menu;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.TextView;

public class MainMenuActivity extends Activity {
	private TextView lblGotoConf;
	private TextView lblGotoSave;
	private TextView lblGotoList;
	
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.menu_service);

		lblGotoConf = (TextView) findViewById(R.id.link_to_conf);
		lblGotoConf.setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		Intent itemintent = new Intent(MainMenuActivity.this, ConfTrackActivity.class);
        		MainMenuActivity.this.startActivity(itemintent);
        	}
        });
		
		lblGotoSave = (TextView) findViewById(R.id.link_to_use);
		lblGotoSave.setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		Intent itemintent = new Intent(MainMenuActivity.this, SaveTrackActivity.class);
        		MainMenuActivity.this.startActivity(itemintent);
        	}
        });
		
		lblGotoList = (TextView) findViewById(R.id.link_to_list);
        lblGotoList.setOnClickListener(new OnClickListener() {
        	@Override
        	public void onClick(View v) {
        		Intent itemintent = new Intent(MainMenuActivity.this, ListTrackActivity.class);
        		MainMenuActivity.this.startActivity(itemintent);
        	}
        });
	}

	@Override
	public boolean onCreateOptionsMenu(Menu menu) {
		// Inflate the menu; this adds items to the action bar if it is present.
		getMenuInflater().inflate(R.menu.main, menu);
		return true;
	}

}
